<template>
    <div class="fiexd-btn" @click="goBack()">返回</div>
</template>
<script>
export default {
    methods:{
        goBack(){
            this.$router.back();
            // this.$router.go(n); n 通过数值的方式描述，浏览器的历史记录转换的路径
            // this.$router.go(-2);

        }
    }

}
</script>
<style lang="less" scoped>
.fiexd-btn{
    position: fixed;
    right: 0.2rem;
    bottom: @bottomHeight + 0.1rem;
    background-color: rgba(0, 0, 0, 0.8);
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    line-height: 1rem;
    text-align: center;
    color: white;
    z-index: 99;
}
</style>